package top.xiangqifu.springboot2.user.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 文件表
 *
 * @author 向启福
 */
@Data
@ApiModel(value = "文件信息" , description = "文件信息应答对象")
@TableName("tb_file")
public class TbFile implements Serializable {
    private static final  long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键",example = "1")
    @ApiParam(hidden = false)
    private Integer fid;
    @ApiModelProperty(value = "上传用户id",example = "1")
    @ApiParam(hidden = false)
    private Integer uid;
    @ApiModelProperty(value = "文件描述",example = "用户图片")
    @ApiParam(hidden = false)
    private String info;
    @ApiModelProperty(value = "文件名",example = "微信图片_20231124083208.jpg")
    @ApiParam(hidden = false)
    private String fileName;
    @ApiModelProperty(value = "文件大小",example = "30035")
    @ApiParam(hidden = false)
    private long fileSize;
    @ApiModelProperty(value = "文件类型",example = "image/jpeg")
    @ApiParam(hidden = false)
    private String contentType;
    @TableField(updateStrategy = FieldStrategy.NEVER, insertStrategy = FieldStrategy.NEVER)
    @ApiModelProperty(value = "创建时间",example = "2023-12-08 10:50:50")
    @ApiParam(hidden = false)
    private Date created;
}
